

public class Test {
	
	public static void main(String[] args) {      
      int[] arr = {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
      int count = 0;
      
      System.out.println(Breeding.binaryToDouble(arr));
      System.out.println(Breeding.binaryToDouble(Breeding.doubleToBinary(0.5)));
      for(int i = 0; i < 1000; i++){
    	  arr = new int[] {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
    	  if(Breeding.binaryToDouble(Breeding.mutate(arr)) < 10)
    		  count++;
      }
      System.out.println(count);
      
/*      MovementData[] bots = new MovementData[16];
      
      for(int i = 0; i < 16; i++){
    	  bots[i] = new MovementData();  
    	  bots[i].Fitness = (int) (Math.random() * 20);
      }
      
      Breeding.newGeneration(bots);
      
      for(int i = 0; i < bots.length; i++){
    	  System.out.println(bots[i].Fitness);
      }*/
    }
}